package com.gangquan360.smartadmin.module.customer.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gangquan360.smartadmin.module.customer.domain.entity.CustomerInvoiceInfoEntity;

/**
 * [ 客户开票信息 ]
 *
 * @author wiggin
 * @version 1.0
 * @company wiggin
 * @copyright (c) 2018 wigginInc. All rights reserved.
 * @date 2020-03-08 21:25:37
 * @since JDK1.8
 */
@Mapper
@Component
public interface CustomerInvoiceInfoDao extends BaseMapper<CustomerInvoiceInfoEntity> {

    /**
     * 根据id删除
     * @param id
     * @return
    */
    void deleteById(@Param("id") Long id);

    /**
     * 批量删除
     * @param idList
     * @return
    */
    void deleteByIds(@Param("idList") List<Long> idList);
    
    
    /**
     * 
     * @param id
     * @return
     */
    Integer deleteByCustomerId(@Param("id") Long id);
    
    
    /**
     * 
     * @param id
     * @param entity
     * @return
     */
    Integer updateByCustomerId(@Param("id") Long id, @Param("entity") CustomerInvoiceInfoEntity entity);
}
